home *** CD-ROM | disk | FTP | other *** search
/ PC go! 2008 April / PCgo 2008-04 (DVD).iso / interface / contents / demoversionen_3846 / 13664 / files / Data1.cab / props.xsl < prev    next >
Encoding:
Extensible Markup Language  |  2007-08-30  |  2.0 KB  |  95 lines

  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:fo="http://www.w3.org/1999/XSL/Format">
  3.     <xsl:output method="xml" version="1.0" encoding="ISO-8859-1" omit-xml-declaration="no" indent="no" media-type="text/html"/>
  4.  
  5.     <xsl:template match="/">
  6.     <html>
  7.         <body>
  8.             <xsl:apply-templates/>
  9.         </body>
  10.     </html>
  11.     </xsl:template>
  12.  
  13.     <xsl:template match="Properties">
  14.         <tr>
  15.             <td>
  16.             </td>
  17.             <td>
  18.                 <h3>
  19.                     <b>Eigenschaften</b>
  20.                 </h3>
  21.                 <table border="1" width="100%">
  22.                     <tr bgcolor="#C0C0C0">
  23.                         <td width="10%">
  24.                             <b>Name</b>
  25.                         </td>
  26.                         <td width="20%">
  27.                             <b>Wert</b>
  28.                         </td>
  29.                     </tr>
  30.                     <xsl:apply-templates select="Property|CProperty"/>
  31.                 </table>
  32.                 <br/>
  33.             </td>
  34.         </tr>
  35.     </xsl:template>
  36.     <xsl:template match="Property">
  37.         <tr bgcolor="#E0E0E0">
  38.             <td>
  39.                 <xsl:value-of select="@name"/>
  40.             </td>
  41.             <td>
  42.                 <xsl:value-of select="."/>
  43.             </td>
  44.         </tr>
  45.     </xsl:template>
  46.     <xsl:template match="CProperty">
  47.         <tr bgcolor="#E0E0E0">
  48.             <td>
  49.                 <xsl:value-of select="@name"/>
  50.             </td>
  51.             <td>
  52.                 <table border="1" width="100%">
  53.                     <tr bgcolor="#C0C0C0">
  54.                         <td width="10%">
  55.                         </td>
  56.                         <td width="20%">
  57.                         </td>
  58.                     </tr>
  59.                     <xsl:apply-templates select="SProperty|SCProperty"/>
  60.                 </table>
  61.             </td>
  62.         </tr>
  63.     </xsl:template>
  64.     <xsl:template match="SProperty">
  65.         <tr bgcolor="#E0E0E0">
  66.             <td>
  67.                 <xsl:value-of select="@name"/>
  68.             </td>
  69.             <td>
  70.                 <xsl:value-of select="."/>
  71.             </td>
  72.         </tr>
  73.     </xsl:template>
  74.     <xsl:template match="SCProperty">
  75.         <tr bgcolor="#E0E0E0">
  76.             <td>
  77.                 <xsl:value-of select="@name"/>
  78.             </td>
  79.             <td>
  80.                 <table border="1" width="100%">
  81.                     <tr bgcolor="#C0C0C0">
  82.                         <td width="10%">
  83.                         </td>
  84.                         <td width="20%">
  85.                         </td>
  86.                     </tr>
  87.                     <xsl:apply-templates select="SProperty|SCProperty"/>
  88.                 </table>
  89.             </td>
  90.         </tr>
  91.     </xsl:template>
  92.  
  93.  
  94. </xsl:stylesheet>
  95.